@extends('admin.layout.index')
@section('title', '后台专栏文章列表')
@section('header', '专栏个人文章列表')
@section('con')
<div class="row">
    <div class="col-lg-6">
        <div class="panel panel-default">
            <div class="panel-heading">
                专栏文章
            </div>
            <!-- /.panel-heading --> 
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>专栏名</th>
                                <th>用户名</th>
                                <th>话题</th>
                                <th>标题</th>
                                <th>文章</th>
                                <th>评论</th>
                                <th>点赞数</th>
                                <th>时间</th>
                            </tr>
                        </thead>
            @foreach($data as $k=>$v)
                        <tbody>
                            <tr>
                                <td>{{$v->id}}</td>
                                <td>{{$v->cname}}</td>
                                <td>{{$v->name}}</td>
                                <td>{{$v->title}}</td>
                                <td>{{$v->ctitle}}</td>
                                <td><a href="/admin/zhuanlan/viewarticle?id={{$v->id}}">查看文章</a></td>
                                <td><a href="#">查看评论</a></td>
                                <td>{{$v->pass}}</td>
                                <td>{!! date('Y-m-d H:i:s',$v->time) !!}</td>
                            </tr>
                        </tbody>
            @endforeach
                    </table><hr>
                </div>
                {!! $data->appends($all)->render() !!}
                <!-- /.table-responsive -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-6 -->
    
</div>
@endsection
